<?php
namespace wow\controller;

use gnomephp\mvc\CoreController;
use \gnomephp\doctrine\Doctrine;
class Updater extends CoreController{
	
	
	public function update(){
		
		Doctrine::load();
		
		$schemaTool = new \Doctrine\ORM\Tools\SchemaTool(Doctrine::getEM());

		$metadatas = Doctrine::getEM()->getMetadataFactory()->getAllMetadata();
		
		$var = $schemaTool->updateSchema($metadatas, true);
		
		
		die("Update successful. ");
		
	}
	
	
	
	
}